// 创建store
import { configureStore } from '@reduxjs/toolkit'
import slice from './slice'
const store = configureStore({
  // 这里相当于就是合并reducer
  reducer: {
    xxx: slice.reducer, //slice.reducer返回slice自动生成的reducer函数
  },
})

export default store
